package com.maserb.monitor.service.JwReport;

import com.maserb.monitor.entity.JwReport.JwFileInfoEntity;
import com.maserb.monitor.model.JwFileInfoModel;
import com.maserb.monitor.repository.JwVisitReport.JwFileInfoRepository;
import com.maserb.monitor.service.base.JpaSpecificationService;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;


public interface JwFileInfoService extends JpaSpecificationService<JwFileInfoRepository, JwFileInfoRepository, JwFileInfoEntity, String> {
    List<JwFileInfoEntity> findAllByAssociatedNameAndAssociatedId(String associatedName, String associatedId);

    String getUploadDir();
    String uploadPhoto(MultipartFile multipartFile) throws IOException;
    JwFileInfoModel uploadImage(MultipartFile multipartFile) throws IOException;
    JwFileInfoModel uploadRecording(MultipartFile multipartFile) throws IOException;
    JwFileInfoModel uploadVideo(MultipartFile multipartFile) throws IOException;
}